package com.peng.selenium;

import com.google.common.collect.ImmutableList;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

import java.util.List;
import java.util.stream.Collectors;

/**
 * SeleniumTest
 *
 * @author: lupeng10
 * @create: 2023-05-19 19:10
 */
public class SeleniumTest {

    @Test
    public void t1() {
        System.setProperty("webdriver.chrome.driver", "/Users/hou/tools/chromedriver_mac64/chromedriver");
        WebDriver driver = new ChromeDriver();
        driver.get("https://www.baidu.com");
        driver.quit();
    }

    @Test
    public void t2() {
        List<String> collect = ImmutableList.of(
                        "java",
                        "go"
                ).stream()
                .filter(a -> a.equals("java"))
                .collect(Collectors.toList());
    }
}
